﻿<%@ Page Title="" MasterPageFile="~/BackOffice.master" Language="C#" AutoEventWireup="true" CodeBehind="CadastroClientePF.aspx.cs" Inherits="MakeIT.Deo.Apresentacao.CadastroClientePF" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>


<asp:Content ID="cMain" ContentPlaceHolderID="cphMain" runat="server">
    <div class="art-Block">
        <div class="art-Block-body">
            <div class="art-BlockHeader">
                <div class="l"></div>
                <div class="r"></div>
                <div class="art-header-tag-icon">
                    <div class="t">Cadastro de Cliente - Pessoa F&iacute;sica</div>
                </div>
            </div>
            <div class="art-BlockContent">
                <div class="art-BlockContent-tl"></div>
                <div class="art-BlockContent-tr"></div>
                <div class="art-BlockContent-bl"></div>
                <div class="art-BlockContent-br"></div>
                <div class="art-BlockContent-tc"></div>
                <div class="art-BlockContent-bc"></div>
                <div class="art-BlockContent-cl"></div>
                <div class="art-BlockContent-cr"></div>
                <div class="art-BlockContent-cc"></div>
                <div class="art-BlockContent-body">

    <asp:UpdatePanel ID="upnCliente" runat="server">
        <ContentTemplate>
            <asp:TabContainer ID="tabCliente" runat="server" ActiveTabIndex="1">
                <asp:TabPanel ID="tabPesquisa" runat="server" HeaderText="Pesquisa">
                    <ContentTemplate>
                        <div style="width: 100%;">
                            <table style="width: 575px;">
                                <tr>
                                    <td>
                                        C&oacute;digo
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtId" runat="server"></asp:TextBox>
                                        <asp:MaskedEditExtender ID="mskTxtId" runat="server" Mask="9999999" TargetControlID="txtId" PromptCharacter="" />
                                    </td>
                                    <td>
                                        Nome
                                    </td>
                                    <td>
                                        <asp:TextBox ID="txtNome" runat="server"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                        <asp:Button ID="btnPesquisa" runat="server" Text="Pesquisa" OnClick="btnPesquisa_Click" />
                                        <br />
                                        <br />
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="4">
                                    <asp:GridView ID="grvResultado" runat="server" AutoGenerateColumns="False" EmptyDataText="N&atilde;o foram encontrados registros nessa pesquisa!">
                                            <Columns>
                                                <asp:TemplateField>
                                                    <ItemTemplate>
                                                        <asp:ImageButton ID="imgbVisualizar" runat="server" OnClick="imgbVisualizar_Click"
                                                            ImageUrl="~/App_Themes/Padrao/imagens/backoffice/editar.gif" CommandArgument='<%#Eval("IdCliente") %>' />
                                                    </ItemTemplate>
                                                    <ItemStyle HorizontalAlign="Center" />
                                                </asp:TemplateField>
                                                <asp:BoundField DataField="IdCliente" HeaderText="ID"/>
                                                <asp:BoundField DataField="Nome" HeaderText="Nome" />
                                                <asp:BoundField DataField="Sobrenome" HeaderText="Sobrenome" />
                                                <asp:BoundField DataField="CPF" HeaderText="CPF" />
                                                <asp:CheckBoxField DataField="Ativo" HeaderText="Ativo?" />
                                            </Columns>
                                        </asp:GridView>
                                    </td>
                                </tr>
                            </table>
                        </div>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabCadastro" runat="server" HeaderText="Cadastro">
                    <ContentTemplate>
                        <asp:Panel ID="panelCad" runat="server">
                            <div style="width: 100%;">
                                <table style="width: 575px;">
                                    <tr>
                                        <td>
                                            C&oacute;digo:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="txtCadId" runat="server" Enabled="False" BackColor="#E0E0E0"></asp:TextBox>
                                       </td>
                                        <td>
                                            Sexo:
                                        </td>
                                        <td>
                                            <asp:RadioButtonList ID="rblSexo" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Text="Masculino" Value="Masculino"></asp:ListItem>
                                                <asp:ListItem Text="Feminino" Value="Feminino"></asp:ListItem>
                                            </asp:RadioButtonList>
                                            <asp:RequiredFieldValidator ControlToValidate="rblSexo" 
                                               ErrorMessage="Favor informar o sexo." ID="rfvRblSexo" Display="None"
                                               runat="server" ValidationGroup="Salvar" />
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender10" runat="server" TargetControlID="rfvRblSexo"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Nome:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbNome" runat="server"  MaxLength="20" Columns="20" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender1" runat="server" TargetControlID="tbNome" WatermarkText="Seu nome" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbNome" 
                                               ErrorMessage="Favor informar o nome." ID="rfvTextBoxNome" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="rfvTextBoxNome"></asp:ValidatorCalloutExtender>
                                        </td>
                                        <td>
                                            Sobrenome:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbSobrenome" runat="server"  MaxLength="20" Columns="20" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender8" runat="server" TargetControlID="tbSobrenome" WatermarkText="Seu sobrenome" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbSobrenome" 
                                               ErrorMessage="Favor informar o sobrenome." ID="rfvTbSobrenome" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender11" runat="server" TargetControlID="rfvTbSobrenome"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Nascimento:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbNascimento" runat="server" Columns="10" ToolTip="Clique no calendário ao lado para informar sua data de nascimento."></asp:TextBox>
                                            <asp:ImageButton ID="imgTbNascimento" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/Calendario.png" />
                                            <asp:MaskedEditExtender ID="MaskedEditExtender6" runat="server" 
                                                ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                                ClearMaskOnLostFocus="true" 
                                                InputDirection="LeftToRight" Mask="99/99/9999" MaskType="Date" 
                                                PromptCharacter="_" TargetControlID="tbNascimento" />
                                            <asp:RequiredFieldValidator ID="rfvTbNascimento" runat="server" ControlToValidate="tbNascimento" Display="None"
                                                ErrorMessage="Favor informar sua data de nascimento clicando no calendário ao lado." ValidationGroup="Salvar" />
                                            <asp:CalendarExtender ID="tbNascimento_CalendarExtender" runat="server" DaysModeTitleFormat="dd/MM/yyyy"
                                                Enabled="True" TargetControlID="tbNascimento" BehaviorID="imgTbNascimento"
                                                PopupButtonID="imgTbNascimento" Format="dd/MM/yyyy" TodaysDateFormat="dd/MM/yyyy">
                                            </asp:CalendarExtender>
                                             <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender12" runat="server" TargetControlID="rfvTbNascimento" PopupPosition="Left"></asp:ValidatorCalloutExtender>
                                       </td>
                                       <td colspan="2"></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Email:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbMail" runat="server" MaxLength="45" Columns="44"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender2" runat="server" TargetControlID="tbMail" WatermarkText="Seu email para contato" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbMail" 
                                               ErrorMessage="Favor informar o email." ID="rfvTbMail" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                           <asp:RegularExpressionValidator id="regEmail" ControlToValidate="TbMail"
                                                ErrorMessage="Email não informado corretamente."
                                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                                                Runat="server" Display="None" ValidationGroup="Salvar"/> 
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender3" runat="server" TargetControlID="rfvTbMail"></asp:ValidatorCalloutExtender>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender2" runat="server" TargetControlID="regEmail"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Endere&ccedil;o:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbEnd" runat="server"  MaxLength="100" Columns="80" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender9" runat="server" TargetControlID="tbEnd" WatermarkText="Seu endereço" WatermarkCssClass="waterMark"/>
                                            <asp:RequiredFieldValidator ControlToValidate="tbEnd" 
                                               ErrorMessage="Favor informar o endereço." ID="rfvTbEnd" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender13" runat="server" TargetControlID="rfvTbEnd"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            N&uacute;mero:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbNumero" runat="server"  MaxLength="10" Columns="15" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender10" runat="server" TargetControlID="tbNumero" WatermarkText="Número do endereço" WatermarkCssClass="waterMark"/>
                                            <asp:RequiredFieldValidator ControlToValidate="tbNumero" 
                                               ErrorMessage="Favor informar o número do endereço." ID="rfvTbNumero" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender14" runat="server" TargetControlID="rfvTbNumero"/>
                                        </td>
                                        <td>
                                            Complemento:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbCompl" runat="server"  MaxLength="10" Columns="15" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender11" runat="server" TargetControlID="tbCompl" WatermarkText="Complemento do endereço" WatermarkCssClass="waterMark"/>
                                       </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Bairro:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbBairro" runat="server"  MaxLength="45" Columns="80" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender12" runat="server" TargetControlID="tbBairro" WatermarkText="Seu bairro" WatermarkCssClass="waterMark"/>
                                            <asp:RequiredFieldValidator ControlToValidate="tbBairro" 
                                               ErrorMessage="Favor informar o bairro." ID="rfvTbBairro" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender15" runat="server" TargetControlID="rfvTbBairro"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Cidade:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbCid" runat="server"  MaxLength="45" Columns="80" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender13" runat="server" TargetControlID="tbCid" WatermarkText="Sua cidade" WatermarkCssClass="waterMark"/>
                                            <asp:RequiredFieldValidator ControlToValidate="tbCid" 
                                               ErrorMessage="Favor informar sua cidade." ID="rfvTCid" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender16" runat="server" TargetControlID="rfvTCid"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Estado:
                                        </td>
                                        <td>
                                            <asp:DropDownList ID="ddlCadUF" runat="server" MaxLength="2">
                                            </asp:DropDownList>
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" 
                                            ControlToValidate="ddlCadUF" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                        </td>
                                        <td>
                                            CEP:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbCEP" runat="server"  MaxLength="9" Columns="10" ></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender14" runat="server" TargetControlID="tbCEP" WatermarkText="Seu CEP" WatermarkCssClass="waterMark"/>
                                            <asp:MaskedEditExtender ID="MaskedEditExtenderx" runat="server" 
                                                ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                                ClearMaskOnLostFocus="true" 
                                                InputDirection="LeftToRight" Mask="999999999" MaskType="None" 
                                                PromptCharacter="_" TargetControlID="tbCEP" >
                                            </asp:MaskedEditExtender>
                                             <asp:RequiredFieldValidator ControlToValidate="tbCEP" 
                                               ErrorMessage="Favor informar o cep." ID="rfvTbCEP" Display="None"
                                               runat="server" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender17" runat="server" TargetControlID="rfvTbCEP"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            CPF:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbCPF" runat="server" MaxLength="15" Columns="20"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender15" runat="server" TargetControlID="tbCPF" WatermarkText="Seu CPF" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" 
                                                ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                                ClearMaskOnLostFocus="true" 
                                                InputDirection="LeftToRight" Mask="999.999.999-99" MaskType="None" 
                                                PromptCharacter="_" TargetControlID="tbCPF" >
                                            </asp:MaskedEditExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbCPF" 
                                               ErrorMessage="Favor informar o cpf." ID="rfvTbCPF" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender18" runat="server" TargetControlID="rfvTbCPF"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            RG:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbRG" runat="server" MaxLength="15" Columns="20"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender16" runat="server" TargetControlID="tbRG" WatermarkText="Seu RG" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbRG" 
                                               ErrorMessage="Favor informar o rg." ID="rfvTbRG" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender19" runat="server" TargetControlID="rfvTbRG"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>
                                            Telefone Residencial:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbFone" runat="server" MaxLength="15" Columns="44"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender3" runat="server" TargetControlID="tbFone" WatermarkText="Seu telefone para contato" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:MaskedEditExtender ID="MaskedEditExtender4" runat="server" 
                                                ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                                ClearMaskOnLostFocus="true" 
                                                InputDirection="LeftToRight" Mask="(99) 999999999" MaskType="None" 
                                                PromptCharacter="_" TargetControlID="tbFone" >
                                            </asp:MaskedEditExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbFone" 
                                               ErrorMessage="Favor informar o n&uacute;mero de telefone." ID="rfvTbFone" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender4" runat="server" TargetControlID="rfvTbFone"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Celular:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbCel" runat="server" MaxLength="15" Columns="44"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender17" runat="server" TargetControlID="tbCel" WatermarkText="Seu celular para contato" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:MaskedEditExtender ID="MaskedEditExtender5" runat="server" 
                                                ClearTextOnInvalid="True" ErrorTooltipEnabled="true" AutoComplete="False"
                                                ClearMaskOnLostFocus="true" 
                                                InputDirection="LeftToRight" Mask="(99) 999999999" MaskType="None" 
                                                PromptCharacter="_" TargetControlID="tbCel" >
                                            </asp:MaskedEditExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbCel" 
                                               ErrorMessage="Favor informar o n&uacute;mero de telefone." ID="rfvTbCel" Display="None"
                                               runat="server" ValidationGroup="Salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender20" runat="server" TargetControlID="rfvTbCel"></asp:ValidatorCalloutExtender>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Nome de Usuário:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbUser" runat="server"  MaxLength="45" Columns="30" ToolTip="Este será o nome utilizado para acessar o carrinho de orçamentos no sistema"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender4" runat="server" TargetControlID="tbUser" WatermarkText="Usuário para o carrinho de orçamentos" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbUser" 
                                               ErrorMessage="Favor informar um nome para o usuário." ID="rfvTbUser" Display="None"
                                               runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender7" runat="server" TargetControlID="rfvTbUser"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Senha:
                                        </td>
                                        <td>
                                            <asp:TextBox ID="tbSenha" TextMode="Password" runat="server"  MaxLength="45" Columns="30" ToolTip="Este será a senha utilizada para acessar o carrinho de orçamentos no sistema"></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender5" runat="server" TargetControlID="tbSenha" WatermarkText="Senha para o carrinho de orçamentos" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbSenha" 
                                               ErrorMessage="Favor informar uma senha para o usuário." ID="rfvTbSenha" Display="None"
                                               runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender21" runat="server" TargetControlID="rfvTbSenha"/>
                                        </td>
                                        <td colspan="2">
                                            pode conter letras ou números. (o sistema diferencia letras maiúsculas de minúsculas)
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Confirma&ccedil;&atilde;o de Senha:
                                        </td>
                                        <td colspan="3">
                                            <asp:TextBox ID="tbSenha2" TextMode="Password" runat="server"  MaxLength="45" Columns="30" ToolTip="Confirmação de senha, digite-a novamente exatamente como digitado acima."></asp:TextBox>
                                            <asp:TextBoxWatermarkExtender ID="TextBoxWatermarkExtender6" runat="server" TargetControlID="tbSenha2" WatermarkText="Confirmação da Senha para o carrinho de orçamentos" WatermarkCssClass="waterMark">
                                            </asp:TextBoxWatermarkExtender>
                                            <asp:RequiredFieldValidator ControlToValidate="tbSenha2" 
                                               ErrorMessage="Favor confirmar a senha para o usuário." ID="rfvTbSenha2" Display="None"
                                               runat="server" ValidationGroup="salvar" ></asp:RequiredFieldValidator>
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender22" runat="server" TargetControlID="rfvTbSenha2"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Mala direta?
                                        </td>
                                        <td colspan="3">
                                            <asp:RadioButtonList ID="rblMalaDireta" runat="server" RepeatDirection="Vertical">
                                                <asp:ListItem Text="Sim" Value="Sim"></asp:ListItem>
                                                <asp:ListItem Text="Não" Value="Nao"></asp:ListItem>
                                            </asp:RadioButtonList>
                                            <asp:RequiredFieldValidator ControlToValidate="rblMalaDireta" 
                                               ErrorMessage="Favor informar se gostaria de receber mala direta." ID="rfvRblMalaDireta" Display="None"
                                               runat="server" ValidationGroup="Salvar" />
                                            <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender6" runat="server" TargetControlID="rfvRblMalaDireta"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            Ativo:
                                        </td>
                                        <td colspan="3">
                                            <asp:CheckBox ID="ckbAtivo" runat="server" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td style="vertical-align:top;">
                                            Data Cadastro:
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltDataCadastro" runat="server"></asp:Literal>
                                        </td>
                                        <td style="vertical-align:top;">
                                            Cadastrado por:
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltCadastradoPor" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="vertical-align:top;">
                                            Data Edi&ccedil;&atilde;o:
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltDataEdicao" runat="server"></asp:Literal>
                                        </td>
                                        <td style="vertical-align:top;">
                                            Editado por:
                                        </td>
                                        <td>
                                            <asp:Literal ID="ltEditadoPor" runat="server"></asp:Literal>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="4">
                                            <span style="color:Red;"> (*) Campos Obrigatórios </span><br />
                                            <br />
                                            <br />
                                            <asp:Button ID="btnSalvar" runat="server" Enabled="False" ValidationGroup="Salvar"
                                                OnClick="btnSalvar_Click" Text="Salvar" />
                                            &nbsp;<asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" 
                                                Text="Cancelar" />
                                            <asp:Button ID="btnEditar" runat="server" Enabled="False" 
                                                OnClick="btnEditar_Click" Text="Editar" />
                                            &nbsp;<asp:Button ID="btnExcluir" runat="server" Enabled="False" 
                                                OnClick="btnExcluir_Click" Text="Excluir" />
                                            &nbsp;<asp:Button ID="btnNovo" runat="server" OnClick="btnNovo_Click" Text="Novo" />
                                            <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnExcluir" ConfirmText="Confirma a exclus&atilde;o do cliente? Aten&ccedil;&atilde;o! Todos os D&eacute;bitos e Documentos deste cliente ser&atilde;o permanentemente removidos!!!">
                                            </asp:ConfirmButtonExtender>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </ContentTemplate>
    </asp:UpdatePanel>

                </div>
            </div>
        </div>
    </div>

</asp:Content>




